package main
import "time"
import "fmt"

func run() {
	defer func() {
        if err := recover(); err != nil {
            fmt.Println("work failed:", err)
        }
    }()

	svr()
}

func svr() {
	i := 0
	a := [...]int{1,2,3,4,5,6,7,8,9}
	for{
		i++
		fmt.Println(a[i])
		time.Sleep(time.Second)
	}
}

func main() {
	go run()
	go fmt.Println("Hello")
	for {
		fmt.Println(".")
		time.Sleep(time.Second)
	}
}